#define _CRT_SECURE_NO_WARNINGS	

#include<stdio.h>
#include<math.h>

int main()
{
    double x;
    int num;
    scanf("%lf%d", &x, &num);
    switch (num)
    {
    case 1:
        printf("%.2f\n", -x);
        break;
    case 2:
        printf("%.2f\n", pow(x, 2));
        break;
    case 3:
        printf("%d\n", (int)x);
        break;
    case 4:
        printf("EXIT\n");
        break;
    }
    return 0;
}